package com.ibm.spatiotemp.processor.splitter;

import org.apache.log4j.Logger;

import com.ibm.spatiotemp.datamodel.datatype.Constraints;

public class LinestringSplitterFactory {
	public static Logger logger = Logger
			.getLogger(LinestringSplitterFactory.class);

	public static LinestringSplitter getSplitterInstance(int runnmode) {
		LinestringSplitter res = null;
		switch (runnmode) {
		case Constraints.DATASRC_MODE_MOCK: {
			res = new MockLineStringSplitter();
			break;
		}
		case Constraints.DATASRC_MODE_LOCAL: {
			throw new RuntimeException("not implemented now");
		}
		case Constraints.DATASRC_MODE_REMOTE: {
			throw new RuntimeException("not implemented now");
		}

		default: {
			res = new MockLineStringSplitter();
		}
		}
		return res;
	}
}
